package bean;

public class VoiceData {
	private String callID;
	private byte[] data = new byte[60];

	public VoiceData() {

	}

	public VoiceData(byte[] VoiceData) {
		byte[] tmp = new byte[8];
		System.arraycopy(VoiceData, 2, tmp, 0, 8);
		setCallID(new String(tmp));
		System.arraycopy(VoiceData, 10, data, 0, 60);
	}

	public String getCallID() {
		return callID;
	}

	public void setCallID(String callID) {
		if (callID != null) {
			callID = callID.trim();
		}
		this.callID = callID;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

}
